<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>信息展示页面</title>
<link rel="stylesheet" type="text/css"
	href="themes/bootstrap/easyui.css">
<link rel="stylesheet" type="text/css"
	href="themes/icon.css">
<link rel="stylesheet" type="text/css"
	href="themes/color.css">
<script type="text/javascript"
	src="js/jquery.min.js"></script>
<script type="text/javascript"
	src="js/jquery.easyui.min.js"></script>
<script type="text/javascript"
	src="js/easyui-lang-zh_CN.js"></script>
</head>
<script type="text/javascript">
	$(function(){
		//树形菜单展示
		$('#tt').tree({    
		    url:'fincAction?pid=-1',
		    onLoadSuccess:function(node,data){
		    	$("#tt").tree('expandAll')
		    },
		    onClick:function(node){
		    	var  flag = $("#tb").tabs('exists',node.text)
		    	if(node.attributes.url){
		    		if(!flag){
			    		$("#tb").tabs('add',{
				    		title:node.text,
				    		content:"<iframe  width='100%' height='100%' frameborder='0' src='"+node.attributes.url+"'></iframe>",
				    		closable:true
				    	})	
			    	}
		    	}		    	
		    	
		    }
		   
		});  
		
	});

</script>
<body class="easyui-layout">
    <div data-options="region:'north',split:false" style="height:100px;">
    		<c:choose>
			 <c:when test="${sessionScope.user.ustate == 0}">
			 	${iname}
          	 </c:when>
          	 <c:when test="${sessionScope.user.ustate == 1}">
			 	${tname} 
          	 </c:when>
          	 <c:otherwise>
        		${sname} 
   			 </c:otherwise>
		</c:choose>
    	欢迎您！
    </div>   
    <div data-options="region:'west',title:'功能展示',split:false,collapsible:false" style="width:200px;">
    	<ul id="tt"></ul> 
    </div>   
    <div data-options="region:'center',border:false" style="padding:5px;background:#eee;" >
    <!-- tabs框 -->
    <div id="tb" class="easyui-tabs" data-options="fit:true,border:false">   
	</div>
    </div>  
    <div data-options="region:'south',title:'版权所有',width:50,height:50,split:false,collapsible:false">
    	版权由开发小组所有，如有抄袭必定法律追究
    </div>
</body>
</html>